package cn.lzb.book.server.component.convert;

import cn.lzb.book.server.dao.po.CategoryPo;
import cn.lzb.book.server.entity.dto.CategoryInfo;
import cn.lzb.book.server.entity.vo.CategoryVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liuzhibo
 * @date 2024/8/28 21:09
 **/
@Mapper
public interface CategoryConvert {
    CategoryConvert INSTANCE = Mappers.getMapper(CategoryConvert.class);

    CategoryInfo categoryPo2Info(CategoryPo categoryPo);

    CategoryPo categoryInfo2Po(CategoryInfo categoryInfo);

    CategoryVo categoryPo2Vo(CategoryPo categoryPo);
}
